package edu.nf.work.common.config;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeIn;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import org.springframework.context.annotation.Configuration;

/**
 * @author XCH
 * @date 2025 - 09 - 17
 */
@Configuration
@OpenAPIDefinition(
        info = @Info(
                title = "移动端接口文档",
                version = "1.0.0",
                description = "NF商城移动端接API接口",
                license = @License(name = "MIT", url = "https://opensource.org/licenses/MIT")
        ),
        security = {
                @SecurityRequirement(name = "JWT")
        }
)
@SecurityScheme(
        name = "JWT",
        type = SecuritySchemeType.HTTP,
        scheme = "bearer",
        in = SecuritySchemeIn.HEADER
)
public class OpenAiConfig {
}
